package cn.vcjf.washcar.washcarorder.mapper;

import cn.vcjf.washcar.washcarorder.entity.WashCarOrder;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 洗车订单表 Mapper 接口
 * </p>
 *
 * @author zhengzihang
 * @since 2018-07-17
 */
public interface WashCarOrderMapper extends BaseMapper<WashCarOrder> {

	Map<String,Double> findWashCarOrderStatistics();

	Map<String,Object> findMainIndexOrderCount();

	Map<String,Object> findOrderTransaction();

	Map<String, Object> findUserCount();

	Map<String, Object> findOrderCount();

	List<Map<String, Object>> getManagerIndexOrderData(@Param("begDate") Date begDate, @Param("endDate")Date endDate);

	List<Map<String, Object>> getDayOfMonthOrderCount();

	List<Map<String, Object>> getNear7DaysOrderCount();

	List<WashCarOrder> selectPageList(RowBounds rowBounds, WashCarOrder washCarOrder);

}
